package com.zygh.questionnairesurvey.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 菜单信息表
 */
@Data
@ApiModel(value="UserMenu对象", description="菜单信息表")
public class UserMenu implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
	private Integer id;
    
    @ApiModelProperty(value = "菜单编号", example = "0")
	private Integer serial;
    
    @ApiModelProperty(value = "菜单名称")
	private String name;
    
    @ApiModelProperty(value = "地址")
	private String path;
    
    @ApiModelProperty(value = "标志")
	private String icon;
    
    @ApiModelProperty(value = "上级id", example = "0")
	private Integer level;


    @ApiModelProperty(value = "排序", example = "0")
	private Integer sort;

	@ApiModelProperty(value = "可视范围", example = "0")
	@TableField(exist = false)
	private Integer visualScope;



	@ApiModelProperty(value = "创建时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private String createDate;

	@TableField(exist = false)
	private List<UserMenu> userMenuList;





	
}